﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using WLYT.Application.Interfaces;
using WLYT.Common;
using WLYT.Domain.Entries;
using WLYT.Domain.Model;

namespace WLYT.WMS.Controllers
{
    [ApiController]
    [Authorize]
    public class RouteController(IRouteService routeService) : ControllerBase
    {
        [Route("api/routes")]
        [HttpPost]
        public Task<List<RouteItem>> GenerateRouters()
        {
            return routeService.RouteTreeLoad();
        }
    }
}
